package com.preludeb.auth.core;


import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UserDetailsService;
import org.springframework.security.core.userdetails.UsernameNotFoundException;
import org.springframework.security.crypto.password.StandardPasswordEncoder;


public class PreludebUserService implements UserDetailsService
{
    public UserDetails loadUserByUsername(String username) throws UsernameNotFoundException
    {
        StandardPasswordEncoder encoder = new StandardPasswordEncoder();
        
        PreludebUser entazUser = new PreludebUser();
        
        entazUser.setUsername(username);
        entazUser.setPassword(encoder.encode("abcd"));
        
        return entazUser;
    }
}